package model.service;

import java.sql.SQLException;

import model.dao.MemberDAO;
import model.vo.MemberVO;



public class MemberServiceImpl implements MemberService{
	private MemberDAO memberDAO;
	public void setMemberDAO(MemberDAO memberDAO) {
		this.memberDAO = memberDAO;
	}
	@Override
	public void registerMember(MemberVO vo) throws SQLException {
		memberDAO.registerMember(vo);
	}
	@Override
	public MemberVO loginMember(String id, String password) throws SQLException {
		// TODO Auto-generated method stub
		return memberDAO.loginMember(id, password);
	}
	@Override
	public MemberVO updateMember(MemberVO vo) throws SQLException {
		memberDAO.updateMember(vo);
		return memberDAO.getMember(vo.getId());
	}
	@Override
	public boolean idCheck(String id) throws SQLException {
		// TODO Auto-generated method stub
		return memberDAO.idCheck(id);
	}
}
